Initialise the connection ID when a domain is introduced. This (re)enables
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 2 Dec 2005 01:34:39 +0000 (01:34 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 2 Dec 2005 01:34:39 +0000 (01:34 +0000)
commitd3079e26113a4cd1ebcdd7fd5fad8d65c7081f34
tree793405b025300392e4bad8b1b3cbd5c7a79e8e5b
parent3ceb6ce6b7bff36c32f852aafd305cad1008e1d3
Initialise the connection ID when a domain is introduced.  This (re)enables
the permission checking in xenstored.

Default the store permissions to read/write nobody (apart from the privileged
domain).  Create a /local node with these permissions, ready for inheriting by
children.  In Xend, create a /vm node with these permissions too, for the same
reason, and set the permissions on /local/domain/<domid> and each device
backend path to allow the guest domain to access these paths appropriately.

Added xstransact.{set_permissions,SetPermissions,mkdir,Mkdir,complete} as
support facilities.

This closes bug #290.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomain.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/DevController.py
tools/python/xen/xend/xenstore/xstransact.py
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_domain.c